package cn.tedu.csmall.commons.pojo.cart.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@ApiModel("新增购物车商品的DTO")
@Data
public class CartAddDTO implements Serializable {
    //商品编号
    @ApiModelProperty(value = "商品编号",name = "commodityCode",example = "PU200")
    private String commodityCode;
    //商品价格
    @ApiModelProperty(value = "商品价格",name = "price",example = "500")
    private Integer price;
    //商品的个数
    @ApiModelProperty(value = "商品的个数",name = "count",example = "10")
    private Integer count;
    //用户ID
    @ApiModelProperty(value = "用户ID",name = "userId",example = "UU100")
    private String userId;
}
